<?php
class Help_product_helper {
    
    public function show_product($data = array())
    {
        $baseURL = base_url();
        $html = '';
        foreach($data as $list_pro)
        {
        $html .= '<div class="sp">
                            
                                <p align="center">
                            	<a href=""><img src = '.$list_pro['pro_img_src'].' border="0" style="height:100px;width:100px; " alt="Images" /></a>
                                </p>
                                
                            <div class="nd">
                            	<p align="center">'.$list_pro['pro_name'].'</p>
                                <div class="btn">
                                	<a href="'.$baseURL.'index.php/default/shopping_cart/buy/'.$list_pro['pro_id'].'"><p align="center">BUY NOW</p></a>
                                </div>
                                <div class="btn">
                                	<a href="'.$baseURL.'index.php/default/product/details/'.$list_pro['pro_id'].'"><p align="center">DETAILS</p></a>
                                </div>
                                <div style="clear:both"></div>
                                <div class="gia">
                                    <p align="center">Price: <del>'.$list_pro['pro_price'].'</del></p>
                                    <p align="center" style="font-size: 14px; color: green;">Sale '.$list_pro['pro_pri_sale'].'</p>
                                </div>
                            </div>
                        </div>';
        }
        return $html;
    }
}
